<?php
$this->breadcrumbs=array(
	'Carga Semestral'=>array('admin'),
	$model->TX_NOME,
);

$this->menu=array(
	array('label'=>'Criar Modelo', 'url'=>array('create')),
	array('label'=>'Excluir Modelo', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->ID_TEMPLATE),'confirm'=>'Tem certeza que deseja excluir este item?')),
	array('label'=>'Administrar Modelos', 'url'=>array('admin')),
);
?>

<h1>Visualizar Modelo</h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'NU_ANO',
		'NU_SEMESTRE',
		'DT_INI',
		'DT_FIM',
		'TX_NOME',
	),
)); ?>
<br/>
<h2>Disciplinas</h2>
<?php $this->widget('zii.widgets.grid.CGridView', array(
    'id'=>'disciplina-carga-grid',
    'dataProvider'=>$modelDC->search(),
    'columns'=>array(
            'ID_DISCIPLINA',
            'iD_AMBIENTE.TX_NOME',
            'TX_DIAS',
            'HR_INI',
            'HR_FIM',
    ),
)); 
?>

    <a href="<?php echo CController::createAbsoluteUrl('template/create', array('id'=>$model->ID_TEMPLATE)) ?>" class="linkButton" title="Utilizar Modelo">
        Utilizar Modelo
    </a>

